package com.wson.controller.clouddisk.framework;

import javax.servlet.http.HttpServletRequest;

import com.wson.adapter.clouddisk.factory.CodiskAdapterFactory;
import com.wson.adapter.codisk.ICodiskAdapter;
import com.wson.adapter.oauth.IOAuthAdapter;
import com.wson.controller.oauth.AbstractOAuthCertificationRequestController;
import com.wson.model.adapter.oauthaccount.IOAuthAccountManip;
import com.wson.model.adapter.oauthaccount.IOAuthAccountView;
import com.wson.model.adapter.oauthprovider.IOAuthProviderView;
import com.wson.model.clouddisk.account.ICodiskAccountView;
import com.wson.model.clouddisk.provider.ICodiskProviderView;

public abstract class AbstractCodiskOAuthCertificationRequestController extends
		AbstractOAuthCertificationRequestController {
/*	@Override
	protected boolean isAuthorizationRequired(HttpServletRequest request) {
		return false;
	}*/
	

	@Override
	protected  void assignOAuthAccountValue(IOAuthAccountManip account, HttpServletRequest request){
		//No values
	}
	@Override
	protected  IOAuthAdapter  getAdapter(IOAuthAccountView account, HttpServletRequest request){
		ICodiskAdapter adapter = CodiskAdapterFactory.getAdapter((ICodiskAccountView)account);
		
		return adapter;
	}
	@Override
	protected  IOAuthAdapter  getAdapter(IOAuthProviderView provider, HttpServletRequest request){
		ICodiskAdapter adapter = CodiskAdapterFactory.getAdapter((ICodiskProviderView)provider);
		
		return adapter;
	}
	

}
